package main

import (
	"fmt"
	"time"
)

func main() {
	/*
	timer:=time.AfterFunc(time.Second*3, func(){
		fmt.Println("after func")
	});
	*/
	timer:=time.NewTimer(time.Second*2)

	fmt.Println(<-timer.C)
}
